package cn.bb.entity5;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Emp implements Serializable {
    public Map<String,String> map;
    public void printInfo(){
        if(map != null) {
            System.out.println("员工有：");
            for (Map.Entry<String,String> s : map.entrySet() ) {
                System.out.println("姓名："+s.getKey()+",员工地址："+s.getValue());
            }
        }

    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }
}
